
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

/*
----------------------------------------------------------------------------------------------------

-- Created By:  ()
-- Purpose: Updates a record in the File table
----------------------------------------------------------------------------------------------------
*/


CREATE PROCEDURE dbo.File_Update
(

	@Id int   ,

	@Url nvarchar (200)  ,

	@Title nvarchar (50)  ,

	@ParentId nvarchar (20)  ,

	@OrderIndex int   ,

	@IsPublished bit   ,

	@FileType varchar (10)  ,

	@CreatedDate datetime   ,

	@UpdatedDate datetime   ,

	@CreatedUser varchar (50)  ,

	@UpdatedUser varchar (50)  
)
AS


				
				
				-- Modify the updatable columns
				UPDATE
					[dbo].[File]
				SET
					[Url] = @Url
					,[Title] = @Title
					,[ParentId] = @ParentId
					,[OrderIndex] = @OrderIndex
					,[IsPublished] = @IsPublished
					,[FileType] = @FileType
					,[CreatedDate] = @CreatedDate
					,[UpdatedDate] = @UpdatedDate
					,[CreatedUser] = @CreatedUser
					,[UpdatedUser] = @UpdatedUser
				WHERE
[Id] = @Id 
				
			

GO
